#!/opt/biepics/bin/linux-x86/N9000AEP

## You may have to change N9000AEP to something else
## everywhere it appears in this file

epicsEnvSet("ARCH","linux-x86")
epicsEnvSet("IOC","iocN9000AEP")
epicsEnvSet("TOP","/opt/biepics")
epicsEnvSet("ASYN","/opt/biepics")
epicsEnvSet("STREAM","/opt/biepics")
epicsEnvSet("EPICS_BASE","/opt/biepics")
epicsEnvSet "STREAM_PROTOCOL_PATH" "$(TOP)/db"
epicsEnvSet "P" "$(P=N9000AEP:)"
epicsEnvSet "R" "$(R=TUNE:)"
epicsEnvSet("ETHER","192.168.116.234")
epicsEnvSet(EPICS_CA_MAX_ARRAY_BYTES, 800000)
cd ${TOP}

## Register all support components
dbLoadDatabase "dbd/N9000AEP.dbd"
N9000AEP_registerRecordDeviceDriver pdbbase

#########################################################
# Set up ASYN ports
vxi11Configure("L0", "$(ETHER)", 0, 0.0, "inst0", 0)
#asynSetTraceIOMask("L0",-1,0x2)
#asynSetTraceMask("L0",-1,0x1)

## Load record instances
dbLoadRecords("db/DSA815.db","P=$(P),R=$(R),PORT=L0,A=0")
#dbLoadRecords("db/devN9000AEP.db","P=$(P),R=$(R),PORT=L0,A=0")
dbLoadTemplate "db/user.substitutions"
## Set this to see messages from mySub
#var mySubDebug 1

## Run this to trace the stages of iocInit
#traceIocInit

cd ${TOP}
iocInit


